<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="__PUBLIC__/Admin/js/html5.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Admin/js/respond.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Admin/js/PIE_IE678.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/Admin/css/H-ui.css" />
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/Admin/css/H-ui.admin.css" />
    <link type="text/css" rel="stylesheet" href=__PUBLIC__/Admin/font/font-awesome.min.css" />
    <!--[if IE 7]>
    <link href="__PUBLIC__/Admin/font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    <title>添加用户</title>
</head>
<body>
<div class="pd-20">
    <div class="Huiform">
        <form action="__APP__/Admin/saveuser" method="post">
            <table class="table table-bg">
                <tbody>
                <tr>
                    <th width="100" class="text-r"><span class="c-red">*</span>
                        用户名：</th>
                    <td>
                        <input type="text" style="width:200px" class="input-text" value="{$user.username}" disabled="readonly" name="username" >

                    </td>
                </tr>
                <th width="100" class="text-r"><span class="c-red">*</span>
                    昵称：</th>
                <td><input type="text" style="width:200px" class="input-text"
                           value="{$user.nickname}" placeholder="" id="user-name" name="nickname"
                           datatype="*2-8" nullmsg="昵称不能为空"></td>
                </tr>

                <tr>
                    <th class="text-r"><span class="c-red">*</span> 状态：</th>
                    <td>
                        <if condition="$user.type eq 1">
                            <label>

                                <input name="type" type="radio"
                                       id="state1" value="1" checked> 启用
                            </label> <label>
                            <input type="radio" name="type" value="0"
                                   id="state"> 禁用
                        </label>
                            <else/>
                            <label>

                                <input name="type" type="radio"
                                       id="state1" value="1" > 启用
                            </label> <label>
                            <input type="radio" name="type" value="0"
                                   id="state" checked> 禁用
                        </label>
                        </if>

                    </td>
                </tr>



                <tr>
                    <th></th>
                    <td>
                        <input type="hidden" value="{$user.id}" name="id">
                        <button class="btn btn-success radius" type="submit" >
                            <i class="icon-ok"></i> 确定
                        </button>
                    </td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
</div>

<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/H-ui.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/H-ui.admin.js"></script>

<script type="text/javascript" src="__PUBLIC__/Admin/layer/layer.min.js"></script>

<script type="text/javascript">
    $(".Huiform").Validform();


</script>

<if condition="$addtype eq 1">
    <script type="text/javascript">
        alert("修改成功");
        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
        parent.layer.close(index); //再执行关闭
    </script>
</if>

</body>
</html>